const sequelize = require('./db');
const { DataTypes } = require('sequelize');
const commentPost = sequelize.define("commentPost", {

    // 商品的id
    commodityId: {
        type: DataTypes.STRING,
        allowNull: false
    },
    username: {
        type: DataTypes.STRING,
        allowNull: false
    },
    // 用户头像
    portrait: {
        type: DataTypes.STRING,

    },
    // 发帖
    posts: {
        type: DataTypes.TEXT,
        allowNull: false
    },
}, {
    paranoid: true
})

module.exports = commentPost